Basket Delete Failed
Kafka topic owned by the contributor team carrying Basket API's explicit checkout cleanup failure outcome for Finance compensation.
Purpose & Scope
This topic transports explicit business failure outcomes published by Basket APIServicev1.0.0Basket APIInternal HTTP and gRPC service for managing customer-scoped shopping baskets, Catalog price enrichment, and post-checkou...PublishesGetBookGrpc, GetBooksGrpc +2SubscribesCreateBasket, UpdateBasket +4APIsOpenAPI, AsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs within the Shopping bounded context when a submitted basket cannot be deleted during checkout. Order OrchestrationServicev1.0.0Order OrchestrationMessage-driven Finance workflow service that coordinates post-checkout basket cleanup and order notifications using Dura...PublishesPlaceOrderCommand, DeleteBasketCompleteCommand +3SubscribesUserCheckedOutIntegrationEvent, OrderStatusChangedToCompleteIntegrationEvent +3APIsAsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs consumes this signal to trigger compensating order soft-deletion without sending a customer email. Transient infrastructure exceptions during basket storage access are not published here; those route to Basket Dead Letter QueueChannelv1.0.0Basket Dead Letter QueueKafka dead-letter topic owned by the platform team that captures Basket API messages after retry exhaustion or deseriali...Ownerplatform-engineering-teamOpen docs.
Channel Specification
| Property | Value |
|---|---|
| Bounded Context / Owner | ShoppingDomainv1.0.0ShoppingCoordinates the customer basket and pre-purchase checkout intent, from selecting books through handing an accepted purch...Ownercommerce-fulfillment-teamDiagramOpen docs / Commerce Fulfillment TeamTeamCommerce Fulfillment TeamStream-Aligned team owning customer shopping baskets, checkout coordination, order lifecycle, and financial saga orchest...Open docs |
| Channel Type | Topic |
| Address Pattern | bookworm.{env}.basket.delete-failed |
| Parameters | env (development, staging, production; default: development) |
| Protocol & Envelope Format | Kafka + CloudEvents JSON (application/json) |
| Partition Key & Ordering Guarantee | Keyed by orderId; preserves per-order event ordering within a partition |
| Delivery Semantics | At-least-once |
| Dead-Letter Channel | None (direct worker consumption by Order OrchestrationServicev1.0.0Order OrchestrationMessage-driven Finance workflow service that coordinates post-checkout basket cleanup and order notifications using Dura...PublishesPlaceOrderCommand, DeleteBasketCompleteCommand +3SubscribesUserCheckedOutIntegrationEvent, OrderStatusChangedToCompleteIntegrationEvent +3APIsAsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs) |
Messages & Participants
| Message | Type | Producer | Consumer(s) | Consumer Group |
|---|---|---|---|---|
| Basket deletion failedEventv1.0.0Basket deletion failedIndicates that Basket could not delete the submitted basket during checkout cleanup. Ownercommerce-fulfillment-teamSchemaDiagramOpen docs | Event | Basket APIServicev1.0.0Basket APIInternal HTTP and gRPC service for managing customer-scoped shopping baskets, Catalog price enrichment, and post-checkou...PublishesGetBookGrpc, GetBooksGrpc +2SubscribesCreateBasket, UpdateBasket +4APIsOpenAPI, AsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs | Order OrchestrationServicev1.0.0Order OrchestrationMessage-driven Finance workflow service that coordinates post-checkout basket cleanup and order notifications using Dura...PublishesPlaceOrderCommand, DeleteBasketCompleteCommand +3SubscribesUserCheckedOutIntegrationEvent, OrderStatusChangedToCompleteIntegrationEvent +3APIsAsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs | Finance orchestration worker |
Ordering, Retries & Failure Handling
- Partition-key ordering: Records are partitioned by
orderIdso failure outcomes stay ordered with other lifecycle events for the same order. - Transient retries: Order OrchestrationServicev1.0.0Order OrchestrationMessage-driven Finance workflow service that coordinates post-checkout basket cleanup and order notifications using Dura...PublishesPlaceOrderCommand, DeleteBasketCompleteCommand +3SubscribesUserCheckedOutIntegrationEvent, OrderStatusChangedToCompleteIntegrationEvent +3APIsAsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs applies bounded retry/backoff on transient orchestration host or state faults.
- Poison & failure posture: Direct worker consumption has no dedicated service DLQ; inspect worker logs and order saga state before replaying, as replay can trigger order soft-deletion.
- Consumer idempotency: Order OrchestrationServicev1.0.0Order OrchestrationMessage-driven Finance workflow service that coordinates post-checkout basket cleanup and order notifications using Dura...PublishesPlaceOrderCommand, DeleteBasketCompleteCommand +3SubscribesUserCheckedOutIntegrationEvent, OrderStatusChangedToCompleteIntegrationEvent +3APIsAsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs deduplicates repeated failure outcomes so the compensating transition is not applied twice.
Channel Details & Visualization
Channel information
bookworm.{env}.basket.delete-failed- kafka
| Parameter | Description | Options | Default |
|---|---|---|---|
| env | BookWorm deployment environment. | development, staging, production | development |
Related Documentation
- Basket APIServicev1.0.0Basket APIInternal HTTP and gRPC service for managing customer-scoped shopping baskets, Catalog price enrichment, and post-checkou...PublishesGetBookGrpc, GetBooksGrpc +2SubscribesCreateBasket, UpdateBasket +4APIsOpenAPI, AsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs — Basket cleanup producer
- Order OrchestrationServicev1.0.0Order OrchestrationMessage-driven Finance workflow service that coordinates post-checkout basket cleanup and order notifications using Dura...PublishesPlaceOrderCommand, DeleteBasketCompleteCommand +3SubscribesUserCheckedOutIntegrationEvent, OrderStatusChangedToCompleteIntegrationEvent +3APIsAsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs — Finance saga consumer
- Basket Delete CompleteChannelv1.0.0Basket Delete CompleteKafka topic owned by the contributor team carrying Basket API's successful checkout cleanup confirmation for Finance ord...Ownercommerce-fulfillment-teamOpen docs — Paired cleanup success topic
- Failed Basket Cleanup Command ChannelChannelv1.0.0Failed Basket Cleanup Command ChannelKafka topic owned by the commerce-fulfillment-team carrying Finance's failed basket-cleanup compensation command consume...Ownercommerce-fulfillment-teamOpen docs — Downstream compensation command topic
- User CheckoutFlowv1.0.0User CheckoutAn authenticated customer checks out a persisted basket through Ordering API; Finance coordinates asynchronous basket cl...Ownercommerce-fulfillment-teamView flowOpen docs — End-to-end checkout workflow
- Contracts and MessagingCustom DocContracts and MessagingOwned APIs and events connect independently maintained BookWorm capabilities without sharing business state.Ownerplatform-engineering-teamOpen doc — Messaging standards and idempotency rules